import { type RouteRecordRaw } from 'vue-router'

export const AppRoutes: RouteRecordRaw[] = [
  {
    path: '/',
    name: 'layout',
    // 重定向到仪表盘
    redirect: '/dashboard',
    component: () => import('@layout/index.vue'),
    children: [
      {
        path: '/dashboard',
        name: '仪表盘',
        component: () => import('@views/home/index.vue')
      },
      {
        // userCenter/index
        path: '/home/user-center',
        name: '账号信息',
        component: () => import('@views/home/UserCenter.vue')
      },
      {
        path: '/media/channel',
        name: '渠道账号',
        // media/channel/index
        component: () => import('@views/home/UserCenter.vue')
      },
      {
        path: '/media/management',
        name: '引流管理',
        // media/management/index
        component: () => import('@views/home/UserCenter.vue')
      },
      {
        path: '/media/channel/channel-account',
        name: '设置账号',
        // media/channel/channel-account
        component: () => import('@views/home/UserCenter.vue')
      },
      {
        path: '/account',
        name: '账号管理',
        // media/channel/channel-account
        component: () => import('@views/home/UserCenter.vue')
      },
      {
        path: '/channel',
        name: '渠道管理',
        // media/channel/channel-account
        component: () => import('@views/home/UserCenter.vue')
      },
      {
        path: '/data',
        name: '日数据明细',
        // media/channel/channel-account
        component: () => import('@views/home/UserCenter.vue')
      }
    ]
  },
  {
    path: '/login',
    name: '登录',
    component: () => import('@views/login/Login.vue')
  }
]
